﻿/* ================================================================================
<copyright file="ExceptionLibTest.cs" company="The Framework Factory, LLC" lastWriteTime="12/05/2012 23:23:47 PM">
  Copyright (c) 2012 The Framework Factory, LLC.  All rights reserved.
</copyright>
=================================================================================== */
using System;

using NUnit.Framework;

namespace FWF.Logging.Test
{
    /// <summary>
    /// 
    /// </summary>
    [TestFixture]
	public class ExceptionLibTest
	{

        /// <summary>
        /// Formats the exception.
        /// </summary>
        [Test]
        public void FormatException()
        {
            Exception ex = new InvalidOperationException( "This is a message", new ArgumentNullException( "paramName" ) );

            string exceptionAsString = ExceptionLib.FormatException( ex );

            Assert.IsNotEmpty( exceptionAsString );
            Assert.That( exceptionAsString.Contains( "paramName" ) );
        }


	}
}
